package com.coolwen.spring.ioc.java;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;

/**
 * @author CoolWen
 * @version 2020-03-12 9:26
 */
@Configuration
@ComponentScan("com.coolwen.spring.ioc.java")
public class BaseConfiguration {

    @Bean("hello")
    public String getString() {
        return "HelloWorld!";
    }
}
